#!/bin/bash/
#
#近十分钟启动的进程
ps -eo pid,lstart,comm | sed "1d" | while read line ;do
#获取所有进程的时间，将其转换为时间戳，与当前时间戳-600对比
	dates=$(echo "$line" |awk '{print $2,$3,$4,$5,$6}' )
	pid=$(echo "$line" | awk '{print $1}')
	s_dates=$(date -d "$dates" +%s)
	dated=$(date +%s )
	let d_dated=$dated-600
	
	if [ $s_dates -ge $d_dated ] ;then
		num=$(ps -elf | grep "$pid")
		echo "$num"
	fi
	
done
